package com.songmao.pricecloudapitest.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author Remy
 * @description : API等待最大相应时间
 * @date 2020-04-03 16:28
 */
@Component
@PropertySource("classpath:myconfig/requestconfig.properties")
public class PriceCloudApiConfig {

    @Value("${config.ConnectTimeout}")
    private String connectTimeout = "10000";

    @Value("${config.SocketTimeout}")
    private String socketTimeout = "10000";

    @Value("${config.codepath}")
    private String codePath = "/code";

    @Value("${config.messagePath}")
    private String messagePath = "/message";

    @Value("${config.dataPath}")
    private String dataPath = "/data";

    @Value("${config.testIp}")
    private String testIp;

    @Value("${config.username}")
    private String username;

    @Value("${config.password}")
    private String password;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTestIp() {
        return testIp;
    }

    public void setTestIp(String testIp) {
        this.testIp = testIp;
    }

    public String getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(String connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public String getSocketTimeout() {
        return socketTimeout;
    }

    public void setSocketTimeout(String socketTimeout) {
        this.socketTimeout = socketTimeout;
    }

    public String getCodePath() {
        return codePath;
    }

    public void setCodePath(String codePath) {
        this.codePath = codePath;
    }

    public String getMessagePath() {
        return messagePath;
    }

    public void setMessagePath(String messagePath) {
        this.messagePath = messagePath;
    }

    public String getDataPath() {
        return dataPath;
    }

    public void setDataPath(String dataPath) {
        this.dataPath = dataPath;
    }
}
